
using System;

namespace Youz.CreditRepay.Entity
{
    public class AssetHistoryItem
    {
        /// <summary>
        /// 资金操作类型
        /// </summary>
        public AssetOperateType OperateType { set; get; }

        /// <summary>
        /// 资金类型
        /// </summary>
        public AssetHistoryType HistoryType { set; get; }

        /// <summary>
        /// 值
        /// </summary>
        public Decimal AssetValue { set; get; }

        public AssetHistoryItem(AssetOperateType _OperateType, AssetHistoryType _HistoryType, Decimal _AssetValue)
        {
            this.OperateType = _OperateType;
            this.HistoryType = _HistoryType;
            this.AssetValue = _AssetValue;
        }
    }

    /// <summary>
    /// Member_AssetHistory Entity
    ///</summary>
    [Serializable]
    public partial class Member_AssetHistory
    {
        public Member_AssetHistory()
        { }

        #region Entity

        /// <summary>
        /// 记录ID
        /// </summary>
        public Int64 HistoryID { set; get; }

        /// <summary>
        /// 会员帐号
        /// </summary>
        public String MemberAccount { set; get; }

        /// <summary>
        /// 资产类型（Money）
        /// </summary>
        public String AssetType { set; get; }

        /// <summary>
        /// 变动类型（1充值,2提现）
        /// </summary>
        public Int32 ChangeType { set; get; }

        /// <summary>
        /// 变动前余额
        /// </summary>
        public Decimal ChangeAgoBalance { set; get; }

        /// <summary>
        /// 变动额
        /// </summary>
        public Decimal ChangeBalance { set; get; }

        /// <summary>
        /// 变动后余额
        /// </summary>
        public Decimal ChangeAfterBalance { set; get; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Memo { set; get; }

        /// <summary>
        /// 对象ID 
        /// </summary>
        public String ObjectID { set; get; }

        /// <summary>
        /// 变动时间
        /// </summary>
        public DateTime CreateTime { set; get; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String Creator { set; get; }

        #endregion Entity

    }
}
